package com.xinhe.cn.cpbox.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinhe.cn.cpbox.entity.po.ScripGet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xinhe.cn.cpbox.entity.po.ScripSend;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 接收纸条记录 Mapper 接口
 * </p>
 *
 * @author LHB
 * @since 2021-10-09
 */
@Repository
public interface ScripGetMapper extends BaseMapper<ScripGet> {

    @Select("select * from scrip_send ss left join scrip_get sg on ss.scrip_id=sg.scrip_id ${ew.customSqlSegment}")
    IPage<ScripSend> getMyScripGet(@Param(Constants.WRAPPER) QueryWrapper queryWrapper, Page<ScripSend> mpPage);
}
